package cn.xsw.entity.vo;
import cn.xsw.entity.ArticleCategory;
import cn.xsw.entity.Comment;
import cn.xsw.entity.User;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value="Article详细对象", description="")
public class ArticleVo  implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "文章分类tb_article_category的id")
    private ArticleCategory category;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "文章详情")
    private String detail;

    @ApiModelProperty(value = "标题图片")
    private String img;

    @ApiModelProperty(value = "点赞数")
    private Integer likeNum;
    @ApiModelProperty(value = "评论")
    List<CommentVo> commentVos;

    @ApiModelProperty(value = "是否显示在主页1是0否")
    private Boolean isIndex;

    @ApiModelProperty(value = "浏览量")
    private Integer lookNum;

    @ApiModelProperty(value = "评论量")
    private Integer commentNum;

}
